package com.lhy.service.impl;

import com.lhy.dao.PermissionDao;
import com.lhy.entity.Permission;
import com.lhy.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：罗昊宇
 * @Package：com.lhy.service.impl
 * @Project：shiro-framwork
 * @name：PermissionServiceImpl
 * @Date：2024/5/9 0009  21:41
 * @Filename：PermissionServiceImpl
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionDao permissionDao;
    @Override
    public List<Permission> selectByUserId(int userid) {

        return permissionDao.selectById(userid);
    }
}
